package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author wzy
 * @since 2023-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_shop_hierarchy_income_config")
@Schema(name = "MallShareConfig对象", description = "")
public class H2ShopHierarchyIncomeConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name = "统一分红配置ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(name = "层级")
    private Integer hierarchy;

    @Schema(name = "层级名")
    @TableField("name")
    private String name;

    @Schema(name = "分红比例")
    private BigDecimal dividendRatio;

    @Schema(name = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @Schema(name = "更新者")
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

}
